/* 
 * File:   server_ColaDeEventos.h
 * Author: jaschu
 *
 * Created on 22 de junio de 2014, 18:31
 */

#ifndef SERVER_COLADEEVENTOS_H
#define	SERVER_COLADEEVENTOS_H
#include <queue>
#include "server_Evento.h"
#include "common_Mutex.h"
using std::queue;

class ColaDeEventos {
public:
    ColaDeEventos();
    virtual ~ColaDeEventos();
    bool estaVacia();
    void encolar(Evento* evento);
    Evento* mostrarPrimero();
    void desencolar();
    
private:
    queue<Evento*>* cola;   
    Mutex* mutex;

};

#endif	/* SERVER_COLADEEVENTOS_H */

